package com.itheima.controller;

import com.itheima.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 张义
 * @describe:
 * @date 2021/06/20
 */

public class UserController {

    public static void main(String[] args){
        ApplicationContext app = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserService userService = (UserService) app.getBean("userService");
        userService.transfer("ZhangyiA" , "wangyongli" , 5000);
    }

}
